var app = getApp();

Page({
  data: {
   baoji_detail: {}
  },
 baoji_detail: function (bao_id) { //拼机详情
    var that = this;
    if (bao_id) {
      wx.request({
        url: app.api.kzdsurl + app.interface.baojiji_detail + "?id=" + bao_id,
        method: 'get',
        data: {},
        header: {
          'Content-Type': 'application/x-www-form-urlencoded'
        },
        success: function (res) {
          // debugger
          that.setData({
           baoji_detail: res.data.data,

          });
          //endInitData
        },
        fail: function (e) {
          wx.showToast({
            title: '网络异常！',
            duration: 2000
          });
        },
      });
    }

  },
  onLoad: function (options) {
    var that = this;
    this.baoji_detail(options.bao_id)

  },
  onShareAppMessage: function () {
    return {
      title: '宠物美容学校',
      path: '/pages/index/index',
      success: function (res) {
        // 分享成功
      },
      fail: function (res) {
        // 分享失败
      }
    }
  }



});